package com.pz.gulimall.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.pz.gulimall.common.to.RegisterMemberTo;
import com.pz.gulimall.common.to.UserInfoTo;
import com.pz.gulimall.common.utils.PageUtils;
import com.pz.gulimall.common.utils.R;
import com.pz.gulimall.member.entity.MemberEntity;
import com.pz.gulimall.member.vo.MemberFocusSearchReqVo;

import java.util.Map;
import java.util.concurrent.ExecutionException;

/**
 * 会员
 *
 * @author PZ
 * @email pzs@gmail.com
 * @date 2024-02-02 11:17:37
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveRegister(RegisterMemberTo member) throws ExecutionException, InterruptedException;

    R queryMember(String id);

    R queryUserInfoById(Long id);

    void updateUserInfo(UserInfoTo userInfo);

    R queryMemberFocus(MemberFocusSearchReqVo vo);

    R getChannelRegisterId(Long userId);
}

